package org.soenea.doitall.domain.model.user;

import org.dsrg.soenea.domain.DomainObject;

public class User extends DomainObject<Long> implements IUser {
	private String userName;
	private String password;
	private String firstName;
	private String lastName;
	private long groupID;
	private boolean admin;


	public User(long id,String userName, String password, int groupID, String firstName, String lastName, long version, boolean admin) {
		super(id, version);
		this.userName = userName;
		this.password = password;
		this.firstName = firstName;
		this.lastName = lastName; 
		this.groupID = groupID;
		this.password = password;
		this.admin = admin;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName =userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password =password;
	}


	public String getFirstName() { 
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName =firstName;
	}

	public String getLastName() { 
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName =lastName;
	}


	public long getGroupID() {
		return groupID;
	}

	public void setGroupID(long groupID) {
		this.groupID= groupID;
	}

	public boolean isAdmin() {
		return admin;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}
}
